/*
 * @Author: your name
 * @Date: 2020-12-11 17:19:13
 * @LastEditTime: 2022-02-08 13:43:26
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \ksp_fst2_web\src\app\config\project.config.ts
 */
// 系统配置
import { BASE_URL } from '../config/global-const'
export const LAYER_SERVICE = 'fengkai'
export const PAGE_TITLE = '森林资源管理平台'
export const SYSTEM_NAME = '森林资源管理平台'
export const LOGO_URL = '../../assets/system/home/home-forest.png'
export const UPLOAD_URL = `${BASE_URL}/security/common/dfsUploadFiles`
export const PRE_FILE_PATH = 'https://39.100.112.117:5447/'
export const SNAPSHOT_FILE_PATH = 'https://192.168.2.4:5447/'
export const WSS_PATH = 'wss://39.100.112.117:15447/websocket/'
export const WSS_PATH_DEVICE = 'wss://39.100.112.117:15447/websocket/'
export const WSS_PATH_BATCH = 'ws://192.168.2.2:5448/websocket/'
export const GIS_OVERVIEW_WMS_URL = `${BASE_URL}/geowebcache/service/wms`
export const GIS_GEOSERVER_WMS_URL = `${BASE_URL}/geoserver/jiaoling/wms`
export const BASE_VM_NUM = 0.05208
export const JK_CKP = '183.62.15.179'
export const JK_WS = 'ws://localhost:8234'
export const APK_DL_PAGE =
  'https://39.100.112.117:5447/assets/html/download.html'

export class SipConfig {
  static SIP_WSS_SERVER = 'wss://switch.kunsung.com.cn:7443'
  static SWITCH_ORIGIN = 'switch.kunsung.com.cn'
  static SIP_PWD = '13141516'
  static SIP_URI_PORT = ''
  static LOCAL_URI_KEY = 'LOCAL_URI_KEY'
  static REMOTE_URI_KEY = 'REMOTE_URI_KEY'
  static LOCAL_DISPLAY_NAME = 'LOCAL_DISPLAY_NAME'
  static ORIGINATOR_REMOTE = 'remote'
  static ORIGINATOR_LOCAL = 'local'
  static SESSION_CANCELED = 'Canceled'
  static SESSION_UNAVAILABLE = 'Unavailable'
}
export const FILE_PATH = 'https://39.100.112.117:15447/'//录像文件播放
export class SipMsg {
  static REMOTE_CANCELED = '对方取消通话'
  static REMOTE_UNAVAILABLE = '对方正忙'
  static REMOTE_BYE = '对方已挂断'
}

export function getUavRealTimeUrl(id) {
  return `https://asdfghj.work:5010/live?port=1935&app=myapp&stream=${id}`
}

export class SkyConfig {
  static WSS_SERVER = ' wss://jl.wx.kunsung.com.cn:15447/ws'
}

export class MapConstant {
  static layerService = 'jiaoling'
  static resolutions = [0.00951784402332112, 0.00475892201166056, 0.00237946100583028, 0.00118973050291514, 5.9486525145757E-4, 2.97432625728785E-4, 1.5228550437313792E-4, 7.614275218656896E-5, 3.807137609328448E-5]
}

export function isCheckCity(name) {
  // return name.replace(/县/, "市");
  return name
}

export class WorkbenchConfig {
  static famousTree = true
  static protectArea = true
}
export class WpictureGK {
  static filter = false
}

export class ResourceConfig {
  static patrolArea = true
}